using System.Collections;
using System.Collections.Generic;
using MydisDatas;
using UnityEngine;
using UnityEngine.UI;

public class ThisPatient : MonoBehaviour
{
    public List<Patients> thisPatient = new List<Patients>();
    public int thisPatientId;
    public static int Patientid;

    public static int theMaxTurn;
    //病人图片
    public Sprite thisPatientSprite;
    public Image thatPatientImage;
    //病人药材需求
    public static List<int> thisPatientNeeds = new List<int>();
    // Start is called before the first frame update
    public DisaData.Datas a;
    void Start()
    {
        a =  MydisDatas.DisaData.RandomDiaseaID();
        //thisPatientId = a.patientsNeed[0];
       // thisPatientId = Random.Range(0, PatientsDataBase.patientsList.Count);
        //thisPatient.Add(PatientsDataBase.patientsList[thisPatientId]);
    }

    // Update is called once per frame
    void Update()
    {
        //thisPatientSprite = thisPatient[0].patientsImage;
        //thatPatientImage.sprite = thisPatientSprite;

        //theMaxTurn = thisPatient[0].maxturn;
        //thisPatientNeeds = thisPatient[0].patientsNeed;
        thatPatientImage.sprite = a.Image;
        
        theMaxTurn = a.maxturn;
        thisPatientNeeds = a.patientsNeed;
        Patientid = a.NameID;
    }

    public void thisPatientNeedThis()
    {
        
    }
}
